"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
var path_1 = __importDefault(require("path"));
var koa_1 = __importDefault(require("koa"));
var koa_body_1 = __importDefault(require("koa-body"));
var koa_static_1 = __importDefault(require("koa-static"));
var routers_1 = __importDefault(require("./routers"));
var app = new koa_1.default();
app.use(koa_body_1.default({
    multipart: true,
    formidable: {
        maxFileSize: 1024 * 1024 * 10,
    },
}));
app.use(koa_static_1.default(path_1.default.join(__dirname, '../static')));
app.use(routers_1.default.routes());
module.exports = app;
